package wyj;


import java.util.Scanner;



public class fenjie {



    public static boolean is_odd(int n){

        if(n==2||n==3) return true;

        if(n%2==0) return false;

        int i;

        for(i=3;i<=n/2;i+=2)

            if(n%i==0) return false;

        return true;

    }



    public static void main(String[] args) {

        Scanner in = new Scanner (System.in);

        int n=in.nextInt();

        int i=2;

        System.out.print(n+"=");

        while(i<=n){

            if(i==n){

                System.out.println(n);

                break;

            }else if(n%i==0){

                System.out.print(i+"x");

                n /=i;

            }else{

                i++;

            }



        }

    }



}
